package com.xnyzc.lhy.order.mo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Luoqingwei
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "orderLog")
public class OrderLogMo implements Serializable {

    @Id
    private Long id;

    private String orderNo;

    private Long officeId;

    /**
     * 准备转派的供应商id
     **/
    private Long preOfficeId;

    private Integer orderStatus;

    /**
     * 日志描述
     **/
    private String description;

    private Long operatorId;

    private String operator;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;
}
